<!--{template @admin/header}--> 
<div class="header"> <a href="?mod=ad">广告管理</a> </div>
<div class="export_link"> <a class="button back1 back2 fr" href="?mod=ad&code=position">广告位管理</a> </div>
<table cellspacing="1" cellpadding="4" width="100%" align="center" class="tableborder">
<tr> <td colspan="5"> <div class="tr_select">请选择城市：
<select name="city_id" class="isearcher_select_list" onchange="window.location.href='?mod=ad&code=vlist&city_id='+this.value">
 <option value="false" {if $city_id=='false'}selected{/if}>不限城市</option>
{loop $city $i $value}
<option value="{$value['cityid']}" {if $city_id==$value['cityid']}selected{/if}>{$value['cityname']}</option>
{/loop}
</select></div> </td> </tr>
<tr class="tr_nav"> 
<td width="15%">广告名称</td> 
<td width="15%">广告位置</td> 
<td width="5%">所属城市</td> 
<td width="8%">开始时间/结束时间</td>  
<td width="10%" align="center">管理</td> </tr> 
<!--{if empty($ad_list)}-->
 <tr>
  <td colspan="9">暂时还没有广告，请<a href="?mod=ad&code=add">点此添加广告</a>。</td>
  </tr>
   <!--{/if}--> <!--{loop $ad_list $i $value}--> 
   <tr onmouseover="this.className='tr_hover'" onmouseout="this.className='tr_normal'"> 
   <td>{$value['ad_name']}<br/></td> 
   <td><!--{eval echo logic('ad')->getPositionName($value['position_id'])}--></td> 
   <td>{$newcity[$value[city_id]]}</td> 
   <td>{echo date('Y-m-d H:i:s', $value['start_time'])}<br/>{echo date('Y-m-d H:i:s', $value['end_time'])}</td>  
   <td align="center"><a href="?mod=ad&code=edit&id={$value['ad_id']}">修改</a> - <a href="#" title="点此删除该广告" onclick="if(confirm('您确认要删除该广告吗？')){window.location.href='?mod=ad&code=del&id={$value['ad_id']}'}">删除</a></td> </tr> <!--{/loop}--> <tr><td colspan="9">
请注意：</td>
</tr> 
</table> <a href="?mod=ad&code=add" class="back1 back2">添加广告</a> <br> <center>
{$page_arr}
</center> 
{template @admin/footer}


